/**
 * An Information model for InvoiceView.
 */
package infoholders;

import javax.swing.JTable;

/**
 * An information holder class.Set the variables and pass to InvoiceView object
 * to show the invoice in the view and it will print the panel when the method
 * in Nurse.java is called
 * 
 * @author Suren Nihalani
 * @version $Revision$
 */
public class Invoice {
	/**
	 * The name of patient for whom invoice is being printed
	 */
	private String patientName;

	/**
	 * Name of the hospital.
	 */
	private String hospitalName;

	/**
	 * The date the patient was billed
	 */
	private String date;

	/**
	 * The doctor who saw the patient.
	 */
	private String doctor;

	/**
	 * The table with info for the particulars used.
	 */
	private JTable particulars;

	/**
	 * The total amount to be billed.
	 */
	private String totalAmount;

	/**
	 * The nurse printing the invoice.
	 */
	private String myNurse;

	/**
	 * Getter for the patient
	 * 
	 * 
	 * @return The patient name
	 */
	public String getPatientName() {
		return patientName;
	}

	/**
	 * Method setPatientName.
	 * 
	 * @param patientName
	 *            String
	 */
	public void setPatientName(String patientName) {
		this.patientName = patientName;
	}

	/**
	 * Method getHospitalName.
	 * 
	 * @return String
	 */
	public String getHospitalName() {
		return hospitalName;
	}

	/**
	 * Method setHospitalName.
	 * 
	 * @param hospitalName
	 *            String
	 */
	public void setHospitalName(String hospitalName) {
		this.hospitalName = hospitalName;
	}

	/**
	 * Method getDate.
	 * 
	 * @return String
	 */
	public String getDate() {
		return date;
	}

	/**
	 * Method setDate.
	 * 
	 * @param date
	 *            String
	 */
	public void setDate(String date) {
		this.date = date;
	}

	/**
	 * Method setDoctor.
	 * 
	 * @param doctor
	 *            String
	 */
	public void setDoctor(String doctor) {
		this.doctor = doctor;
	}

	/**
	 * Method getDoctor.
	 * 
	 * @return String
	 */
	public String getDoctor() {
		return doctor;
	}

	/**
	 * Method setParticulars.
	 * 
	 * @param particulars
	 *            JTable
	 */
	public void setParticulars(JTable particulars) {
		this.particulars = particulars;
	}

	/**
	 * Method getParticulars.
	 * 
	 * @return JTable
	 */
	public JTable getParticulars() {
		return particulars;
	}

	/**
	 * Method setTotalAmount.
	 * 
	 * @param totalAmount
	 *            String
	 */
	public void setTotalAmount(String totalAmount) {
		this.totalAmount = totalAmount;
	}

	/**
	 * Method getTotalAmount.
	 * 
	 * @return String
	 */
	public String getTotalAmount() {
		return totalAmount;
	}

	/**
	 * Method setMyNurse.
	 * 
	 * @param myNurse
	 *            String
	 */
	public void setMyNurse(String myNurse) {
		this.myNurse = myNurse;
	}

	/**
	 * Method getMyNurse.
	 * 
	 * @return String
	 */
	public String getMyNurse() {
		return myNurse;
	}

	/**
	 * Method toString.
	 * 
	 * @return String
	 */
	public String toString() {
		return "Invoice for Patient: " + patientName;
	}

}
